package com.atwisdom.star.core.dsl.basicClass;

import com.alibaba.fastjson.JSONObject;
import com.atwisdom.star.common.vo.ActionData;
import com.atwisdom.star.common.vo.PageInfo;
import com.atwisdom.star.common.vo.ResultInfo;
import com.atwisdom.star.exception.pojo.BusinessException;

import java.util.List;

public interface ScheduleDslService {
    JSONObject add(JSONObject jsonObject);

    List<JSONObject> batchAdd(List<JSONObject> jsonObjectList);

    JSONObject update(JSONObject jsonObject);

    List<JSONObject> batchUpdate(List<JSONObject> jsonObjectList);

    boolean deleteByIds(List<Long> ids);

    List<JSONObject> query(String condition, String orderBy);

    List<JSONObject> queryInfo(String condition, String orderBy);

    List<JSONObject> queryByIds(List<Long> ids) throws BusinessException;

    PageInfo queryByPage(int pageNumber, int pageSize, String condition, String orderBy);

    PageInfo queryInfoByPage(int pageNumber, int pageSize, String condition, String orderBy);
}
